<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../jspf/jsp_header.jspf"%>
<fmt:setTimeZone value="${sessionScope.JRED_TIME_ZONE}" scope="session" />
<jforum:navBar id="<%=IConst.PAGE.TITLE_NAV_BAR%>">
	<jforum:navElement>
		<jforum:title>
			<c:out value="${requestScope.JFORUM_CURR_FORUM.forumtitle}" />
		</jforum:title>
	</jforum:navElement>
</jforum:navBar>
<%@ include file="../jspf/topbar.jspf"%>
<table width="970" border="0" align="center" cellpadding="0"
	cellspacing="0">
	<tr>
		<td class="center-bg">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
				<td><a href="<c:url value="ShowForum.do"><c:param name="fid" value="${requestScope.JFORUM_CURR_FORUM.forumid}"/></c:url>">全部</a>
				<c:forEach items="${requestScope.JFORUM_TAGS}" var="tag">					
							<a
								href="<c:url value="ShowForum.do"><c:param name="fid" value="${requestScope.JFORUM_CURR_FORUM.forumid}"/><c:param name="tagid" value="${tag.tagid}"/></c:url>"><c:out
									value="${tag.tagname}" /> </a>						
					
					</c:forEach></td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td class="center-bg">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td class="bbslist01-titlebg" colspan="5">
						&nbsp;&nbsp;
						<fmt:message key="forum.FORUM" />
						:
						<span class="caption"> <jforum:process cutToLength="40"
								value="${requestScope.JFORUM_CURR_FORUM.forumtitle}" /> </span>&nbsp;&nbsp;
					</td>
				</tr>
			</table>
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td class="bbslist01-titletxt" width="10%">
						status
					</td>
					<td class="bbslist01-titletxt">
						主题
					</td>
					<td class="bbslist01-titletxt" width="10%">
						文章数
					</td>
					<td class="bbslist01-titletxt" width="10%">
						阅读数
					</td>
					<td class="bbslist01-titletxt" width="30%">
						最新
					</td>
				</tr>
			</table>
			<table width="100%" border="0" cellpadding="0" cellspacing="0"
				class="bbslist01-table">
				<c:forEach var="thread" items="${requestScope.JFORUM_TOPICES}"
					varStatus="status">
					<c:set var="lastMessage" value="${thread.lastMessage}" />
					<tr>
						<td class="bbslist01-list" align="center" width="10%">
						</td>
						<td class="bbslist01-list">
							<table width="100%" cellspacing="0" cellpadding="0">
								<tr>
									<td class="txt_b">
										<a
											href="<c:url value="ShowThread.do">
					                        <c:param name="fid" value="${param.fid}"/>
					                        <c:param name="tid" value="${thread.threadid}"/>
					                   </c:url>"
											class="thread_name"> <c:out value="[${thread.tagname}]" />
											<jforum:codec value="${thread.subject}" /> </a> &nbsp;
										<em><jforum:pageRef threadBean="thread"
												forumId="${param.fid}" /> </em>
									</td>
								</tr>
							</table>
						</td>
						<td class="bbslist01-list" align="center" width="10%">
							<c:out value="${thread.messagesCount}" />
						</td>
						<td class="bbslist01-list" align="center" width="10%">
							<c:out value="${thread.vcount}" />
						</td>
						<td class="bbslist01-list" nowrap width="30%">
							<nobr>
								<a
									href="<c:url value="ShowMessage.do">
					                                  <c:param name="fid" value="${param.fid}"/>
					                                  <c:param name="tid" value="${thread.threadid}"/>
					                                  <c:param name="mid" value="${lastMessage.id}"/>
					                                </c:url>"><jforum:process
										cutToLength="30" value="${lastMessage.contents}" /> </a> ( ... )
							</nobr>
							<br>
							<b> <fmt:formatDate value="${lastMessage.intime}" type="both"
									dateStyle="medium" timeStyle="short" />&nbsp;</b>
						</td>
					</tr>

				</c:forEach>
				<c:choose>
					<c:when test="${!empty requestScope.JFORUM_TOPICES}">
						<tr class="lght">
							<td class="t_g" colspan="5">
								&nbsp;

							</td>
						</tr>

					</c:when>
					<c:otherwise>
						<tr class="lght">
							<td class="t_g" colspan="5">
								<fmt:message key="threads.NO_THREADS" />
							</td>
						</tr>
					</c:otherwise>
				</c:choose>
			</table>
		</td>
	</tr>
</table>
